Skip to content

Conversation

@mark-honman
Copy link

As described in #622 there is no need for explicit Smaiae and Ssaia extensions because ACLIC extension can be based directly on AIA - there is no need to delete AIA features. AIA provides sufficient scope for area-reduction on resource-constrained systems, e.g. by reducing the number of IPRIO bits (possibly to zero), and by recommending a minimal implementation of mvip.

A note has been added, pointing readers to parts of the AIA spec that assist with area reduction.

The AIA spec describes a minimal implementation of mvip and mvien, which does not carry a significant area penalty. The Smaiae section is removed, and a Smaclic/Ssaclic section "Area impact of AIA features" explains how area can be reduced when needed.
Copy link
Collaborator

@christian-herber-nxp christian-herber-nxp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

Copy link
Collaborator

@christian-herber-nxp christian-herber-nxp left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

dependencies need to be updated

src/aclic.adoc Outdated

== Advanced Core Local Interrupt Controller (Smaclic and Ssaclic)

The Smaclic and Ssaclic extensions depend on the Smaiae extension.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This needs to be removed.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Instead, dependence on indirect CSR needs to be added.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The Smnip section is also stated to have an Smaiae dependency. I have changed that to an Smaclic dependency because the section on State enables refers to an ACLIC bit.

However as written Smnip only really depends on AIA; I'll open an issue to discuss whether it should be an extension in its own right.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It should only depend on AIA. The state enable bit is a secondary concern. We will have to see down the road if every extension gets its own state enable bit. But I do not view this bit as only present when Smaclic is present.

Signed-off-by: Christian Herber <[email protected]>
src/aclic.adoc Outdated
| Smtp | (x)| (x)| | | |
| Smaclic | x | | x | | |
| Ssaclic | | x | | x | x |
| Smnip | | | | | x |
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

needs the AIA dependency

src/aclic.adoc Outdated
in which case a virtual instruction exception is raised
when in VS or VU mode instead of an illegal instruction exception.

NOTE: Many AIA features like programmable IPRIO may not be needed in resource constrained systems.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I do not think this is the right place for this note.
It should be right where the dependency to AIA is introduced.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants